package com.spc.car.data.service.sys.impl;

import com.spc.car.data.entity.sys.SysCalendar;
import com.spc.car.data.mapper.sys.SysCalendarMapper;
import com.spc.car.data.service.sys.SysCalendarService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 日程表 服务实现类
 * </p>
 *
 * @author 
 * @since 2020-03-27
 */
@Service
public class SysCalendarServiceImpl extends ServiceImpl<SysCalendarMapper, SysCalendar> implements SysCalendarService {

    @Override
    public int removeCalendar(int id) {

        return baseMapper.deleteById(id);

    }

    @Override
    public List<SysCalendar> selectCalendarByDate(long userId, String startDate, String endDate) {
        return baseMapper.selectCalendarByDate(userId, startDate, endDate);
    }
}
